var cout=0;

function timedCount()
{
	for(var i=0;i<1000000000;i++)
	{
		cout++
	}
	postMessage(cout);

}

timedCount();